• Jobs
  • About Us
  • Jobs
    • Home
    • Jobs
    • Courses and challenges
  • Businesses
    • Home
    • Post vacancy
    • Our process
    • Pricing
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Salary Calculator

0

377
Views
El servidor de desarrollo devolvió el código de error de respuesta: 500 {react Native}

Estaba configurando las navegaciones en mi App.Js cuando encontré este error y no tengo ni idea de cómo resolver este problema. ¿Alguien me puede ayudar?

Inicio.JS

Error

Y solo pegando el código de App.Js

 import * as React from 'react'; import { View, Text } from 'react-native'; import { NavigationContainer } from '@react-navigation/native'; import { createNativeStackNavigator } from '@react-navigation/native-stack'; import Home from "../screens/Home"; import Login from "../screens/Login"; import Registeration from "../screens/Registeration"; function HomeScreen({ navigation }) { return ( <View > <Home /> <Button title="Go to Login" onPress={() => navigation.navigate('Login')} /> </View> ); } function RegisterationScreen({ navigation }) { return ( <View > <Registeration /> <Button title="Go to Home" onPress={() => navigation.navigate('Home')} /> <Button title="Go back" onPress={() => navigation.goBack()} /> </View> ); } function LoginScreen({ navigation }) { return ( <View > <Login /> <Button title="Go to Home" onPress={() => navigation.navigate('Home')} /> <Button title="Go back" onPress={() => navigation.goBack()} /> </View> ); } const Stack = createNativeStackNavigator(); function App() { return ( <NavigationContainer> <Stack.Navigator initialRouteName="Home"> <Stack.Screen name="Home" component={HomeScreen} options={{ title: 'Home' }} /> <Stack.Screen name="Registeration" component={RegisterationScreen} options={{ title: 'Registeration' }} /> <Stack.Screen name="Login" component={LoginScreen} options={{ title: 'Login' }} /> </Stack.Navigator> </NavigationContainer> ); } export default App;
over 3 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Our process Sales
Legal
Terms and conditions Privacy policy
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Show me some job opportunities
There's an error!